package view.micro 
{
	import flash.display.Sprite;
	import model.micro.BoundingBox;
	
	/**
	 * ...
	 * @author Simon Baumgardt-Wellander
	 */
	public class BoundingBoxSprite extends Sprite implements IMicroSprite 
	{
		private var bounding_box:BoundingBox;
		
		public function BoundingBoxSprite(bounding_box:BoundingBox) 
		{
			this.bounding_box = bounding_box;
			
			graphics.lineStyle(1, 0x000000);
			graphics.drawRect(0, 0, bounding_box.width, bounding_box.height);
		}
		
		public function update():void 
		{
			x = bounding_box.left;
			y = bounding_box.bottom;
		}
		
		public function readyToRemove():Boolean 
		{
			return false;
		}
		
	}

}